<template>
	<view class="courseTop">
		<image :src="$imgUrls(pageData.goods_img)" mode="widthFix" class="rows"></image>
		<view class="row a-center m-top10">
			<view class="flex-1 color_33 size30 bold">{{pageData.goods_name}}</view>
			<view class="Downtime m-left20 d-flex f-column a-center white" v-if="pageData.learn_end_time">
				<text class="size22" v-if="pageData.learn_end_time != '已结束'">距结束</text>
				<view class="d-flex a-center m-top8">
					<text class="size32 bold">{{pageData.learn_end_time}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:'detailsTop',
		props:['pageData'],
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.courseTop{
		width:100%;
		position: relative;
		padding:20rpx 38rpx;
		padding-bottom: 30rpx;
	}
	.courseTop::before{
		content: '';
		width:100%;
		height: 10rpx;
		background-color:#f2f2f2;
		position: absolute;
		bottom: 0;
		left:0;
	}
	.Downtime{
		padding:10rpx 50rpx;
		background-color: #D9393C;
	}
</style>

